import javax.swing.JFrame;


public class MainFrame extends JFrame{

	public MainFrame() {
		initUI();
	}
	
	private void initUI() {
		setTitle("Hero's Jump Missiles");
		setSize(600, 350);
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		MainScreen screen = new MainScreen();
		//setFocusable 은 컴포넌트가 이벤트를 수신할 수 있도록 설정.
		screen.setFocusable(true);
		
		screen.setSize(600, 320);
		add(screen);
		
	}
	
	
	public static void main(String[] args) {
		MainFrame frame = new MainFrame();
		frame.setVisible(true);
	}

}
